To create an interval schedule, use the job schedule interval new command. An interval schedule runs jobs at a specified interval after the previous job finishes. For instance, if a job uses an interval schedule of 12 hours and takes 30 minutes to complete, the job runs at the following times:
Day one at 8:00 a.m. (the job's initial run)
Day one at 8:30 p.m.
Day two at 9:00 a.m.
Day two at 9:30 p.m.
When you create an interval schedule, you can specify the interval in units of days, hours, minutes, and seconds.
The following example creates an interval schedule named interval8 that runs a job eight hours after the completion of the previous occurrence of the job:
node::>job schedule interval new -name interval8 -hours 8
The following example creates an interval schedule named interval2.30.30 that runs a job two hours, 30 minutes, and 30 seconds after the completion of the previous occurrence of the job:
node::>job schedule interval new -name interval2.30.30 -hours 2 -minutes 30 -seconds 30
The job schedule interval show command displays the name and description of interval schedules. Other information is displayed in a detailed view and if other parameters are specified. See the reference page for the command for details.
The following examples display information about all interval schedules, and then detailed information about the interval schedule named interval2.30.30.
node::>job schedule interval showName Description interval2.30.30 Every 2h30m30s interval8 Every 8hnode::>job schedule interval show -name interval2.30.30Name: interval2.30.30 Days: 0 Hours: 2 Minutes: 30 Seconds: 30 Description: Every 2h30m30s
The job schedule interval modify command enables you to modify the time intervals for an interval schedule. To change an interval schedule's name, delete it and recreate it.
The following example modifies an interval schedule named interval8 to run at an interval of seven hours and 45 minutes.
node::>job schedule interval modify -name interval8 -hours 7 -minutes 45node::>job schedule interval show -name interval8Name: interval8 Days: 0 Hours: 7 Minutes: 45 Seconds: 0 Description: Every 7h45m